home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Form1"
- ClientHeight = 4020
- ClientLeft = 1095
- ClientTop = 1770
- ClientWidth = 7365
- Height = 4710
- Left = 1035
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- ScaleHeight = 4020
- ScaleWidth = 7365
- Top = 1140
- Width = 7485
- Begin TextBox Text3
- Height = 495
- Left = 5160
- TabIndex = 3
- Text = "1"
- Top = 1320
- Width = 615
- End
- Begin TextBox Text1
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Courier"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 3135
- Left = 360
- MultiLine = -1 'True
- ScrollBars = 3 'Both
- TabIndex = 0
- Text = "Results :"
- Top = 840
- Width = 3855
- End
- Begin TextBox Text2
- Height = 495
- Left = 5160
- TabIndex = 2
- Text = "1"
- Top = 720
- Width = 615
- End
- Begin CommandButton Command1
- Caption = "Command1"
- Height = 495
- Left = 360
- TabIndex = 1
- Top = 120
- Width = 1215
- End
- Begin Menu mnExit
- Caption = "E&xit"
- End
- Sub Command1_Click ()
- cr$ = Chr$(13) + Chr$(10)
- e1% = Val(Text2.Text)
- e2% = Val(Text3.Text)
- t$ = "e1 == " + Text2.Text + cr$
- t$ = t$ + "e2 == " + Text3.Text + cr$
- t$ = t$ + "------------------" + cr$
- t$ = t$ + " & == " + Str$(bitAnd(e1%, e2%)) + cr$
- t$ = t$ + " ^ == " + Str$(bitOr(e1%, e2%)) + cr$
- t$ = t$ + " | == " + Str$(bitXOr(e1%, e2%)) + cr$
- t$ = t$ + " << == " + Str$(bitShiftLeft(e1%, e2%)) + cr$
- t$ = t$ + " >> == " + Str$(bitShiftRight(e1%, e2%)) + cr$
- t$ = t$ + "High== " + Str$(byteHigh(e1%)) + cr$
- t$ = t$ + "Low == " + Str$(byteLow(e1%)) + cr$
- t$ = t$ + "Pack== " + Str$(bitPack(e1%, e2%)) + cr$
- text1.Text = t$
- End Sub
- Sub mnExit_Click ()
- End
- End Sub
-